package org.mozhu.mboot.core.web.converter;

import org.apache.commons.lang3.StringUtils;
import org.joda.time.LocalDate;
import org.springframework.core.convert.converter.Converter;

public class String2LocalDateConverter implements Converter<String, LocalDate> {

	@Override
	public LocalDate convert(String source) {
		if (StringUtils.isBlank(source)) {
			return null;
		}
		return new LocalDate(source);
	}
}
